package cn.wanho.service.impl;

import cn.wanho.dao.CmsAuthorityGroupMapper;
import cn.wanho.dto.CmsAuthorityGroup;
import cn.wanho.rvo.ResultEnum;
import cn.wanho.rvo.ResultVO;
import cn.wanho.service.CmsAuthorityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CmsAuthorityServiceImpl implements CmsAuthorityService {
    @Resource
    private CmsAuthorityGroupMapper cmsAuthorityGroupMapper;
    @Override
    public ResultVO getAuthority() {
        List<CmsAuthorityGroup> authority = cmsAuthorityGroupMapper.getAuthority();
        return ResultVO.success(ResultEnum.GET_AUTHORITY_SUCCESS.getResCode(),ResultEnum.GET_AUTHORITY_SUCCESS.getResMsg(),authority );
    }
}
